import Vue from 'vue'
import Vuex from 'vuex'
import actions from '../actions/menu'
import { UPDATE_MENU_INDEX } from '../mutation-types'
// const localStorage = require('store')

Vue.use(Vuex)

const state = {
  'left_menu_index': 'customs'
}

const mutations = {
  [UPDATE_MENU_INDEX] (state, index) {
    state['left_menu_index'] = index
  }
}

export default {
  state,
  mutations,
  actions
}
